//0712167
//Le Chi Hieu
//Bai tap thuc hanh 2
//CS TTNT
//Logic - Suy dien tien
#include <cstdlib>
#include <iostream>
#include <fstream>
#include "robot.h"
#include "matrix.h"
//#include "graph.h"
using namespace std;

int main(int argc, char *argv[])
{	
	ifstream input;
	ofstream output;
	input.open("input.txt");
	if(!input.is_open())
	{
		output<<"File IO: fail"<<endl;
		return EXIT_FAILURE;
	}
	output.open("0712167.txt");
	if(!output.is_open())
	{
		output<<"File IO: fail"<<endl;
		return EXIT_FAILURE;
	}
	/*****************************/
	Robot rb;
	rb.init(input);
	rb.go();
	/****************************/
	//Ket thuc
	input.close();
	output.close();	
    //system("PAUSE");
    return EXIT_SUCCESS;
}
